package com.example.shop_addres.service.impl;

import com.example.shop_addres.entity.Members;
import com.example.shop_addres.mapper.MembersMapper;
import com.example.shop_addres.service.MembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MembersServiceImpl implements MembersService {
    @Autowired
    private MembersMapper membersMapper;

    @Override
    public int insertMember(Members members) {
        return membersMapper.insertMember(members);
    }

    @Override
    public Members getMembersByMobile(String mobile) {
        return membersMapper.getMembersByMobile(mobile);
    }

    @Override
    public int update(String mobile, String detailedAddress) {
        return membersMapper.update(mobile, detailedAddress);
    }

    @Override
    public int delete(String mobile) {
        return membersMapper.delete(mobile);
    }
}
